﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Products.ascx.cs" Inherits="VIT.Web.Modules.Products.Products" %>

<div class="bgcenter-shsp" id="go<%=catId %>">
<asp:ListView ID="ListView" runat="server">
    <ItemTemplate>
    <ul>
                                    <a href="<%#linkComponent("Product","Detail","sId=" + Convert.ToString(Eval("Id")) + ((isColor==1)?"&sColorsId=" + Obj :(isColor==2)?"&sStylesId=" + Obj:""))%>"><img src="<%#URLRoot %>Uploads/Images/Products/Thumbs/<%#Eval("Image") %>" width="140" height="140" alt="<%#Eval("Title") %>" /></a>
                                    <h2><%#Eval("Title") %></h2>
                                    <h3><%#Eval("Price").ToString()=="0"?"Liên hệ":String.Format("{0:0,0 VNĐ}", Eval("Price"))%></h3>
                                </ul>
        <%--<div class="sp">
            <div class="sp_boder" id="bay<%#Eval("Id") %>">
                <a href="<%=URLRoot %>Components/Product/Detail.aspx?sId=<%#Eval("Id") %>">
                <img src="<%=URLRoot %>Uploads/Images/Products/Thumbs/<%#Eval("Image") %>" height="100px" width="100px"></a>
            </div>
            <div class="tt_sp"> <%#Eval("Title") %> </div>
            <span class="gia_sp"><%#Eval("Price").ToString() != "0" ? Eval("Price","{0:#,#} VNĐ") : "Liên hệ"%> </span>
            <div class="chitiet_sp">
                <a href="<%=URLRoot %>Components/Product/Detail.aspx?sId=<%#Eval("Id") %>">
                    <%= GetGlobalResourceObject("Web", "ChiTiet")%>
                </a>
            </div>
            <div class="muahang_sp" onclick="fly('bay<%#Eval("Id") %>','divGio');ThemVaoGio('<%=URLRoot %>update','<%#Eval("Id") %>','1')">
                    <%= GetGlobalResourceObject("Web", "DatHang")%>
            </div>
        </div>--%>
    </ItemTemplate>
</asp:ListView>
<h4> <asp:DataPager ID="Pager" runat="server" PagedControlID="ListView" PageSize="8" onprerender="Pager_PreRender">
            <Fields>
                <asp:NextPreviousPagerField ShowFirstPageButton="false" ShowNextPageButton="false" FirstPageText="" PreviousPageText="" />
                <asp:NumericPagerField />
                <asp:NextPreviousPagerField ShowLastPageButton="false" ShowPreviousPageButton="false" LastPageText="" NextPageText="" />
            </Fields>
        </asp:DataPager> &hArr; <asp:LinkButton runat="server" ID="lbtViewAll" OnClick="lbtViewAll_Click">Xem tất cả</asp:LinkButton> </h4>
</div>